package com.example.demo.common;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by lyc on 2019/5/31.
 * 封装常用状态码
 */
@Getter
public enum ResponseResultCode {

    /**
     * 成功
     */
    SUCCESS(1000),
    /**
     * 身份验证失败
     */
    FAIL_AUTHORITY(1001),
    /**
     * 通用失败、运行时异常
     */
    FAIL_EXCEPTION(1002),
    /**
     * 字段验证失败
     */
    FAIL_FIELD(1003);

    private int code;


    ResponseResultCode(int code){
        this.code = code;
    }
}
